/*
 * @LastEditors: 七七
 * @Date: 2023-01-08 11:44:42
 * 
 * 该文件专门用于暴露一个store对象，整个应用只有一个store对象
 */

import { createStore, applyMiddleware } from 'redux'
// import { }  分别暴露，统一暴露
import countReducer from './count_reducer' //默认暴露
// 用于支持异步action
import thunk from 'redux-thunk'

//暴露代码
export default createStore(countReducer, applyMiddleware(thunk));

// const store = createStore(countReducer);

// // todo 默认暴露 只暴露一次
// export default store;